home *** CD-ROM | disk | FTP | other *** search
- // JavaScript startup script for Realsoft 3D
-
- include("oops/r3window.js");
- include("oops/r3packer.js");
- include("oops/r3button.js");
- include("real/r3layer/r3laylis.js");
- include("real/widget/r3mainw.js");
- include("real/widget/r3mantab.js");
-
-
- // find tool bar
- tabbed = _r3window.FINDBYNAMEANYWHERE("TabbedToolBar");
-
- // add new tab to the tool bar
- if(tabbed) {
- tab = tabbed.ADDTAB("My Tools");
-
- packer = new r3Packer(R3PA_Orientation, R3PAOF_VERTICAL);
-
- if(packer) {
- tab.SetGmanager(packer);
-
- button = new r3Button(R3WGA_Parent, tab, R3GA_Text, "My test tool");
- if(button)
- packer.ADD(R3PAPF_FILLX | R3PAPF_FILLY | R3PAPF_EXPAND, 0, button);
- }
- }
-
-
- // add new menu to the main window
- _r3window.ADDCUSTOMMENU(R3MWIA_MenuName, "My Menus",
- R3MWIA_MenuPrevName, "Edit");
-
- // add menu item
- _r3window.ADDCUSTOMMENUITEM(R3MWIA_MenuName, "My Menus",
- R3MWIA_MenuItemName, "Open Attribute window",
- R3MWIA_MenuType, R3MWCUSTOMMENUTYPE_WINDOW,
- R3MWIA_MenuData, "Windows/Attributes");
-
-